package com.day03_class_object.abstract_class;

/**
 * @ClassName: Dog
 * @Author: 豆豆在睡觉
 * @Create 2024/2/27-23:06
 * @Version 1.0
 */
public class Dog extends Animal{
    public Dog() {
    }

    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println("我执行了子类Dog的eat方法");
        System.out.println("狗吃骨头");
    }

    public void walk() {
        System.out.println("我是子类Dog都有的方法");
    }
}
